﻿Ext.define('app.prm.detail.Index', {
    extend: 'Ext.panel.Panel',
    //title: '项目首页',
    border: false,
    layout: 'border',
    controller: 'detail',
    viewModel: {
        type: 'detailmodel'
    },
    openCategory: null,
    requires: ['app.prm.detail.DetailController', 'app.prm.detail.DetailModel'],
    initComponent: function () {
        var me = this;
        var projectId = me.paramsId;

        me.items = [

            {
                xtype: 'panel',
                border: false,
                region: 'center',
                layout: 'border',
                items: [
                    Ext.create("app.prm.detail.North", { projectId: projectId }),
                    Ext.create("app.prm.detail.Center", { projectId: projectId, openCategory: me.openCategory })
                ]
            },
             Ext.create("app.prm.detail.East", {
                 projectId: projectId,
                 collapsible: true
             })
        ];
        me.callParent();
    },
    listeners: {
        afterrender: 'onInit'
    }
})